<template>
  <el-container id="laout">
    <!--侧边导航栏-->
    <el-aside :width="$store.getters['user/GET_IS_FOLD_MENUS'] ? '64px' : '200px'">
      <nav-aside />
    </el-aside>
    <el-container>
      <!-- 顶部通栏 -->
      <el-header> 
        <nav-header/>
      </el-header>
      <!-- 内容 -->
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import navAside from "@/components/layout/aside";
import navHeader from '@/components/layout/header';
import {noSelectText} from '@/utils/styleUtils'
export default {
  components: { navAside,navHeader },
  mounted(){
    noSelectText(".el-aside",'.el-header');
  }
};
</script>

<style scoped lang="scss">
#laout {
  height: 100%;
  .el-aside {
    height: 100%;
    .el-menu {
      height: 100%;
    }
  }

  .el-container .el-header {
    padding: 0px;
  }

  .el-main {
    margin-top: 16px;
  }
}
</style>
